import fetch from './fetch'
import responseHandler from './response-handle'

// 获取菜单列表

let getMenuList = (params, success, fail) =>{
    function makeData(res){
        return res
    }

    fetch('/menu/list',params).then(responseHandler.success(success, fail, makeData), responseHandler.error(fail))
}
// 获取菜单详情 

let muneById = (params, success, fail) =>{
    function makeData(res){
        return res
    }

    fetch('/menu/muneById',params).then(responseHandler.success(success, fail, makeData), responseHandler.error(fail))
}


export {
    getMenuList,
    muneById
}